package cn.com.idmy.auth.oauth.model;

import cn.com.idmy.base.IEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum GrantType implements IEnum<String> {
    AUTHORIZATION_CODE("authorization_code", "授权码", null),
    IMPLICIT("token", "隐藏式", null),
    REFRESH_TOKEN("refresh_token", "更新令牌", null),
    PASSWORD("password", "密码式", null),
    CLIENT_CREDENTIALS("client_credentials", "密码式", null);

    private final String value;
    private final String name;
    private final String style;
}
